home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
LOGIC Apps
/
Logic-APPLE_II_APPS.iso
/
pc
/
LOGIC Apple II 5.25" Library - DOS Part 3
/
DOS082.dsk
/
POKE 33.SOURCE.txt
< prev
next >
Wrap
Text File
|
2012-02-16
|
705b
|
33 lines
*THIS ROUTINE TOGLES SCREEN WIDTH OR SELECTS ALTERNATE
*AMPERSAND ROUTINE IF APPROPRIATE
ORG $300
DATAN EQU $D9A3
HOME EQU $FC58
AMP EQU $3F5
DOS EQU $3D0
LDA AMP+1 ;GET PRESENT AMPERSAND VECTOR
STA PASS ;SAVE IT
LDA AMP+2
STA PASS+1
LDA #>START ;GET START OF ROUTINE AND
STA AMP+1 ;PUT IT INTO AMPERSAND VECTOR
LDA #<START
STA AMP+2
JMP DOS ;EXIT SETUP ROUTINE
START JSR DATAN ;ANYTHING AFTER & ?
CPY #0
BEQ FLIP ;NO, THIS ONE'S FOR ME !
JMP (PASS) ;YES, CONTINUE ELSEWHERE
FLIP LDA 33 ;WHERE ARE WE ?
CMP #40
BEQ FLOP ;OTHER WAY
LDA #40 ;SET STANDARD WIDTH
STA 33
RTS ;AND EXIT
FLOP JSR HOME ;CLEAR SCREEN
LDA #33 ;SET SCREEN WIDTH TO EDIT SIZE
STA 33
RTS
PASS DS 2
LST OFF